﻿@{
   
    Layout = null;
    
}

<!DOCTYPE HTML>
<html>
<head>
<title>SX_商城后台</title>

    <link href="~/Scripts/jquery-easyui-1.3.3/themes/default/easyui.css" rel="stylesheet" />
    <link href="~/Scripts/jquery-easyui-1.3.3/themes/icon.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-easyui-1.3.3/jquery.min.js"></script>
    <script src="~/Scripts/jquery-easyui-1.3.3/jquery.easyui.min.js"></script>
    <script src="~/Scripts/jquery-easyui-1.3.3/locale/easyui-lang-zh_CN.js"></script>
    <script src="~/Scripts/jquery.jclock.js"></script>

<script type="text/javascript">
    //new WOW().init();
    $(function () {
        document.domain = "Sxmall.com";
        //时间日期
        $('#jnkc').jclock({ withDate: true, withWeek: true });
        remind();
    });

    //页面头部时间
    function remind() {
        var now = new Date(), hour = now.getHours();
        if (hour > 4 && hour < 6) { $("#labelwelcome").html("凌晨好！") }
        else if (hour < 9) { $("#labelwelcome").html("早上好！") }
        else if (hour < 12) { $("#labelwelcome").html("上午好！") }
        else if (hour < 14) { $("#labelwelcome").html("中午好！") }
        else if (hour < 17) { $("#labelwelcome").html("下午好！") }
        else if (hour < 19) { $("#labelwelcome").html("傍晚好！") }
        else if (hour < 22) { $("#labelwelcome").html("晚上好！") }
        else { $("#labelwelcome").html("夜深了，注意休息！") }
    }

    function openTab(text, url, iconCls) {
        if ($("#tabs").tabs("exists", text)) {
            $("#tabs").tabs("select", text);
        } else {
            var content = "<iframe frameborder=0 scrolling='auto' style='width:100%;height:100%' src='" + url + "'></iframe>";
            $("#tabs").tabs("add", {
                title: text,
                iconCls: iconCls,
                closable: true,
                content: content
            });
        }
    }
</script>
</head>
<body class="easyui-layout">
<div region="north" style="height: 78px;background-color: #E0ECFF">
	<table style="padding: 5px" width="100%">
		<tr>
			<td width="50%">
                <!-- Logo-->
				<img src=""/>
			</td>
			<td valign="bottom" align="right" width="50%">
                <!-- 登陆人-->
                 <div id="jnkc" style="font-size: 12px; color: black; text-align: right; height: 24px;line-height: 24px;" />
				@*<font size="3">&nbsp;&nbsp;<strong></strong></font>*@
			</td>
		</tr>
	</table>
    <table style="padding: 5px" width="100%">
		<tr>
            <td width="90%">
			</td>
			<td valign="bottom" align="right"  width="10%">
                <div id="labelwelcome" style="font-size: 12px; padding-right: 5px; width: 135px; margin-right: 55px; position: absolute; text-align: right;"></div>
			</td>
		</tr>
	</table>
</div>
<div region="center">
	<div class="easyui-tabs" fit="true" border="false" id="tabs">
		<div title="首页" data-options="iconCls:'icon-home'">
			<div align="center" style="padding-top: 100px"><font color="red" size="10">欢迎使用SX—商城后台管理系统</font></div>
		</div>
	</div>
</div>
<div region="west" style="width: 200px" title="导航菜单" split="true">
	<div class="easyui-accordion" data-options="fit:true,border:false">
		<div title="用户管理" data-options="selected:true,iconCls:'icon-user'" style="padding: 10px">
			<a href="javascript:openTab('用户管理','/Admin/ManagerUser','icon-user')" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-manage'" style="width: 150px;">管理用户</a>
		</div>
		<div title="商品管理"  data-options="iconCls:'icon-product'" style="padding:10px;">
			<a href="javascript:openTab('商品管理','/Admin/ProductManage','icon-product')" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-manage'" style="width: 150px;">管理商品</a>
			<a href="javascript:openTab('商品大类管理','/Admin/ProductBigTypeManage','icon-product')" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-manage'" style="width: 150px;">管理商品大类</a>
			<a href="javascript:openTab('商品小类管理','/Admin/ProductSmallTypeManage','icon-product')" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-manage'" style="width: 150px;">管理商品小类</a>
		</div>
		<div title="订单管理"  data-options="iconCls:'icon-order'" style="padding:10px">
			<a href="javascript:openTab('订单管理','orderManage.jsp','icon-order')" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-manage'" style="width: 150px;">管理订单</a>
		</div>
		<div title="留言管理" data-options="iconCls:'icon-comment'" style="padding:10px">
			<a href="" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-manage'" style="width: 150px;">管理留言</a>
		</div>
		<div title="公告管理"  data-options="iconCls:'icon-notice'" style="padding:10px">
			<a href="" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-manage'" style="width: 150px;">管理公告</a>
		</div>
		<div title="新闻管理"  data-options="iconCls:'icon-news'" style="padding:10px">
			<a href="" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-manage'" style="width: 150px;">管理新闻</a>
		</div>
		<div title="标签管理"  data-options="iconCls:'icon-tag'" style="padding:10px">
			<a href="" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-manage'" style="width: 150px;">管理标签</a>
		</div>
		<div title="系统管理"  data-options="iconCls:'icon-item'" style="padding:10px">
			<a href="" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-modifyPassword'" style="width: 150px;">修改密码</a>
			<a href="" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-exit'" style="width: 150px;">安全退出</a>
			<a href="" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-refresh'" style="width: 150px;">刷新系统缓存</a>
		</div>
	</div>
</div>
<div region="south" style="height: 25px;padding: 5px;" align="center">
	XXX商城后台
</div>
</body>
</html>		
